﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true"
  Inherits="Kiiro.SiteDefinition.PortalPages.ActiveProjects, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="v2" TagName="ProjectSummary" Src="~/_controltemplates/Kiiro/ProjectSummary.ascx" %>
<%@ Register TagPrefix="v2" TagName="Pager" Src="~/_controltemplates/Kiiro/Pager.ascx" %>
<%@ Register TagPrefix="v2" TagName="WelcomeMessagePanel" Src="~/_controltemplates/Kiiro/WelcomeMessagePanel.ascx" %>
<%@ Register TagPrefix="v2" TagName="Filter" Src="~/_controltemplates/Kiiro/Filter.ascx" %>
<%@ Register TagPrefix="WPP" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

  <script type="text/javascript">
    $(InitCarousel);
    $(InitProjectSummaryNoteUpdate);
  </script>

  <div id="actionBar" runat="server" class="actionbar">
    <div class="wrap-has-tabs">
      <v2:Filter id="v2Filter" runat="server" />
      <div class="floatRight">
        <ul>
          <li>
            <asp:LinkButton ID="lnkShowProjectDetails" runat="server" Text="Show Project Details"
              OnClick="lnkShowProjectDetails_Click" /></li></ul>
      </div>
    </div>
  </div>
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <div class="panel" id="pnlProjectsList" runat="server">
            <div class="panel-wrap">
              <div class="panel-title">
                <table class="table-active">
                  <tr>
                    <th class="project-title-column">
                      <span>
                        <p class="sort">
                          <asp:LinkButton ID="lbTitleSort" runat="server" OnClick="SortBy_Click" CommandArgument="Title"><b>Title</b></asp:LinkButton>
                          <asp:Literal ID="titleSort" runat="server" />
                        </p>
                      </span>
                    </th>
                    <th class="status-column">
                      <div class='timeline'>
                        Status
                      </div>
                    </th>
                    <th class="start-column">
                      <span>
                        <p class="sort">
                          <asp:LinkButton ID="lbStartSort" runat="server" OnClick="SortBy_Click" CommandArgument="StartDate"><b>Start Date</b></asp:LinkButton>
                          <asp:Literal ID="startSort" runat="server" />
                        </p>
                      </span>
                    </th>
                    <th class="due-column">
                      <span>
                        <p class="sort">
                          <asp:LinkButton ID="lbEndSort" runat="server" OnClick="SortBy_Click" CommandArgument="EndDate"><b>End Date</b></asp:LinkButton>
                          <asp:Literal ID="endSort" runat="server" />
                        </p>
                      </span>
                    </th>
                    <th class="project-manager-column">
                      Project Manager
                    </th>
                  </tr>
                </table>
              </div>
              <div class="table">
                <table class="table-active">
                  <asp:Repeater ID="rptProject" runat="server" OnItemDataBound="rptProject_ItemDataBound">
                    <ItemTemplate>
                      <tr id="trProject" runat="server">
                        <td class="project-title">
                          <h2>
                            <asp:HyperLink ID="lnkProject" runat="server" /></h2>
                        </td>
                        <td class="status">
                          <asp:Literal ID="ltStatus" runat="server" />
                        </td>
                        <td class="start">
                          <asp:Label ID="lblStartDate" runat="server" />
                        </td>
                        <td class="due">
                          <asp:Label ID="lblEndDate" runat="server" />
                        </td>
                        <td class="project-manager">
                          <asp:HyperLink ID="lnkProjectManager" runat="server" />
                        </td>
                      </tr>
                    </ItemTemplate>
                  </asp:Repeater>
                </table>
              </div>
            </div>
          </div>
          <asp:Repeater ID="ProjectSummaryRepeater" runat="server" OnItemDataBound="ProjectSummaryRepeater_ItemDataBound"
            Visible="false">
            <ItemTemplate>
              <v2:ProjectSummary id="v2ProjectSummary" runat="server" />
            </ItemTemplate>
          </asp:Repeater>
          <v2:Pager id="v2Pager" runat="server" OnSaveButtonClicked="OnNextButtonClickedInPagerControl" />
          <v2:WelcomeMessagePanel id="v2WelcomeMessagePanel" runat="server" visible="false" />
        </div>
      </div>
    </div>
  </div>
</asp:Content>
